/*
 * 品牌系列搜索
 * @Author: ljb
 * @Date: 2018-03-27 17:51:07
 * @Last Modified by: ljb
 * @Last Modified time: 2018-09-05 14:27:01
 */
<template>
	<Form
		ref="formInline"
		inline>

		<Form-item
			:label-width="100"
			label="素材分类"
			porp="material_type_id">
			<Select
				v-model="formValidate.material_type_id"
				clearable
				filterable
				transfer>
				<Option
					v-for="( value , key ) in materialTypes"
					:value="key + ''"
					:key="key">{{ value }}</Option>
			</Select>
		</Form-item>

		<Form-item
			:label-width="100"
			label="素材名称"
			prop="title">
			<i-input
				v-model="formValidate.name"
				type="text"
				placeholder="请输入素材名称"/>
		</Form-item>

		<Form-item>
			<Button
				type="primary"
				@click="confirmSearch">搜索</Button>
		</Form-item>

	</Form>
</template>
<script>

export default {

	name: 'BrandSeriesSearchForm',

	data() {
		return {

			formValidate: {

				material_type_id: '',

				name: '',

			}, // 搜索框的对象参数
		};
	},

	mounted() {

	},

	methods: {

		/**
         * 确认搜索
         * @return {undefined}
         */
		confirmSearch() {
			const param = {

				material_type_id: this.formValidate.material_type_id,

				name: this.formValidate.name,

			};

			this.$emit('search', param);
		},

	},

};

</script>
